import Vue from 'vue'
import Router from 'vue-router'
import World from '@/pages/World/World.vue'
import Team from '@/pages/Team/Team.vue'
import Release from '@/pages/Release/Release.vue'
import Mine from '@/pages/Mine/Mine.vue'
import Message from '@/pages/Message/Message.vue'
import Login from '@/pages/Login/Login.vue'
import PerfectInfo from '@/pages/PerfectInfo/PerfectInfo.vue'
import Unread from '@/pages/Unread/Unread.vue'
import Modifym from '@/pages/Modifym/Modifym.vue'
import Publish from '@/pages/publish/pubindex.vue'
import  comments from '@/pages/Commons/Comment.vue'

Vue.use(Router)


export default new Router({
  routes: [
    {
      path: '/',
      name: 'World',
      component: World,
      meta: {
        title: '校园名称',
        requireAuth: true
      }
    },
    {
      path: '/team',
      name: 'Team',
      component: Team,
      meta: {
        title: '团队信息',
        requireAuth: true
      }
    },
    {
      path: '/release',
      name: 'Release',
      component: Release,
      meta: {
        title: '发布动态',
        requireAuth: true
      }
    },
    {
      path: '/mine',
      name: 'Mine',
      component: Mine,
      meta: {
        title: '个人中心',
        requireAuth: true
      }
    },
    {
      path: '/message',
      name: 'Message',
      component: Message,
      meta: {
        title: '消息列表',
        requireAuth: true
      }
    },
    {
      path: '/login',
      name: 'Login',
      component: Login,
      meta: {
        title: '登录'
      }
    },
    {
      path: '/vipinfo',
      name: 'PerfectInfo',
      component: PerfectInfo,
      meta: {
        title: '完善资料',
        requireAuth: true
      }
    },
    {
      path: '/unreadmessage',
      name: 'Unread',
      component: Unread,
      meta: {
        title: '未读消息',
        requireAuth: true
      }
    },
    {
      path: '/modifym',
      name: 'Modifym',
      component: Modifym,
      meta: {
        title: '修改密码',
        requireAuth: true
      }
    },
    {
      path: '/publish',
      name: 'Publish',
      component: Publish,
      meta: {
        title: '我的发布',
        requireAuth: true
      }
    },
    {
      path: '/comment',
      name: 'Publish',
      component: comments,
      meta: {
        title: '我的发布',
        requireAuth: true
      }
    }
  ]
})
